// 通知类型定义
export type NotificationType =
  | "dissolution" // 群解散
  | "invitation" // 群邀请
  | "join_request" // 加入请求
  | "role_promoted" // 角色提升
  | "role_demoted"; // 角色降级

// 通知状态
export type NotificationStatus = "unread" | "read" | "processed";

// 通知处理动作
export type NotificationAction = "accept" | "reject" | "confirm";

// 通知数据结构
export interface GroupNotificationItem {
  id: string;
  type: NotificationType;
  groupId?: string;
  groupName: string;
  groupAvatar?: string;
  senderId?: string;
  senderName?: string;
  timestamp: number;
  content?: string;
  status: NotificationStatus;
  actionResult?: NotificationAction; // 记录处理结果
  roleChange?: {
    oldRole: string;
    newRole: string;
  };
}
